package com.xxl.job.admin.constant;

import lombok.Getter;

/**
 * @Description 通用枚举
 * @Author lihw
 * @Date 2024/1/16 10:13
 */
@Getter
public enum BizCodeEnum {
    SUCCESS(0, "成功"),
    COMMON_FAIL(-1, "失败"),
    // 100~199 登录，权限，身份校验
    AUTH_FAIL(100, "身份校验失败,无效token");

    private final Integer code;
    private final String message;

    BizCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
